/**
 * Created by admin on 2018/12/17.
 */

// import axios from 'axios'

// let baseUrl = '/api/';
// let host = '';
// // 创建axios默认请求
// const $http = axios.create({
//     baseURL: "/api/",
//     timeout: 30000, // request timeout,
// });

// export {

//     baseUrl,
//     host
// }

import HttpRequset from '@/utils/axios'
import config from '@/config'
const baseUrl = process.env.NODE_ENV === 'development' ? config.baseUrl.dev : config.baseUrl.pro

const axios = new HttpRequset(baseUrl)
export default axios